using System;
using System.Collections.ObjectModel;
using System.ComponentModel;

namespace WorkItemCollaborator
{
    public class User
    {
        private string name;
        private string email;
        #region Property Getters and Setters
        public string Name
        {
            get { return this.name; }
        }

        public string Email
        {
            get { return this.name; }
        }

        public string IMSource
        {
            get
            {
                if (String.IsNullOrEmpty(this.email))
                {
                    return String.Empty;
                }
                if (this.email.Contains("."))
                {
                    return this.email;
                }
                return "sip:" + this.email;
            }
        }
        #endregion

        public User(string name, string email)
        {
            this.name = name;
            this.email = email;
        }
    }

}
